package com.prs.crm.action.cdxh;

import java.util.Date;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Result;
import org.courser.struts.BaseAction;
import org.courser.ui.PaginationSupport;

import com.prs.crm.annotation.Clew;
import com.prs.crm.domain.cdxh.molding.MoldingTeam;
import com.prs.crm.service.cdxh.MoldingTeamService;

/**
 * @author LanXiaoGang
 * @E-mail:lan9liang@163.com
 * @qq:7857553326
 * @version 创建时间：2010-12-8 下午04:50:19 简单说明
 */

public class MoldingTeamAction extends BaseAction {

	private static final long serialVersionUID = 1L;

	private PaginationSupport pagination;

	private MoldingTeam moldingTeam;

	private MoldingTeamService moldingTeamService;

	/**
	 * 对应产品明细
	 * 
	 * @return
	 */
	private String[] moldingCodes;
	private Integer[] orderNums;
	private String[] moldingOrderPlans;
	private String[] shaproduct_name;
	private String[] shasize;
	private String[] shacolor;
	private String[] shaspeed;
	private String[] shatemperature_A;
	private Integer[] shaorder_num;
	private Integer[] shayudingNums;
	private Integer[] shareality_num;
	private String[] shayaoqiuSxs;
	private String[] shacustomer;
	private Double[] shaxuyongliaoNums;
	private String[] shafei_num;
	private Double[] shashijiLinNums;
	private String[] sharemark;
	private String[] shatemperature_B;
	private Integer[] shayeshengchanNums;
	private String[] shahuan_num;
	private String[] shatemperature_C;
	private Date[] tihuoDates;
	private String[] rushOrders;

	@Clew(results = { "success", "none", "error" })
	@Action(value = "saveMoldingProduct", results = {
			@Result(name = "success", type = "redirect", location = "listMoldingTeam"),
			@Result(name = "error", type = "redirect", location = "listMoldingTeam") })
	public String saveMoldingProduct() {
		 this.getMoldingTeamService().saveAllMoldingTeam(moldingTeam,
		 moldingCodes, orderNums, moldingOrderPlans, shaproduct_name,
		 shasize, shacolor, shaspeed, shatemperature_A, shaorder_num,
		 shayudingNums, shareality_num, shayaoqiuSxs, shacustomer,
		 shaxuyongliaoNums, shafei_num, shashijiLinNums, sharemark,
		 shatemperature_B, shayeshengchanNums, shahuan_num,
		 shatemperature_C, tihuoDates, rushOrders);
		this.setPrompt("该成型单创建成功!");
		return SUCCESS;
	}
	
	

	public PaginationSupport getPagination() {
		return pagination;
	}

	public void setPagination(PaginationSupport pagination) {
		this.pagination = pagination;
	}

	public MoldingTeam getMoldingTeam() {
		return moldingTeam;
	}

	public void setMoldingTeam(MoldingTeam moldingTeam) {
		this.moldingTeam = moldingTeam;
	}

	public MoldingTeamService getMoldingTeamService() {
		return moldingTeamService;
	}

	public void setMoldingTeamService(MoldingTeamService moldingTeamService) {
		this.moldingTeamService = moldingTeamService;
	}

	public Integer[] getOrderNums() {
		return orderNums;
	}

	public void setOrderNums(Integer[] orderNums) {
		this.orderNums = orderNums;
	}

	public String[] getMoldingOrderPlans() {
		return moldingOrderPlans;
	}

	public void setMoldingOrderPlans(String[] moldingOrderPlans) {
		this.moldingOrderPlans = moldingOrderPlans;
	}

	public String[] getShaproduct_name() {
		return shaproduct_name;
	}

	public void setShaproduct_name(String[] shaproduct_name) {
		this.shaproduct_name = shaproduct_name;
	}

	public String[] getShasize() {
		return shasize;
	}

	public void setShasize(String[] shasize) {
		this.shasize = shasize;
	}

	public String[] getShacolor() {
		return shacolor;
	}

	public void setShacolor(String[] shacolor) {
		this.shacolor = shacolor;
	}

	public String[] getShaspeed() {
		return shaspeed;
	}

	public void setShaspeed(String[] shaspeed) {
		this.shaspeed = shaspeed;
	}

	public String[] getShatemperature_A() {
		return shatemperature_A;
	}

	public void setShatemperature_A(String[] shatemperature_A) {
		this.shatemperature_A = shatemperature_A;
	}

	public Integer[] getShaorder_num() {
		return shaorder_num;
	}

	public void setShaorder_num(Integer[] shaorder_num) {
		this.shaorder_num = shaorder_num;
	}

	public Integer[] getShayudingNums() {
		return shayudingNums;
	}

	public void setShayudingNums(Integer[] shayudingNums) {
		this.shayudingNums = shayudingNums;
	}

	public Integer[] getShareality_num() {
		return shareality_num;
	}

	public void setShareality_num(Integer[] shareality_num) {
		this.shareality_num = shareality_num;
	}

	public String[] getShayaoqiuSxs() {
		return shayaoqiuSxs;
	}

	public void setShayaoqiuSxs(String[] shayaoqiuSxs) {
		this.shayaoqiuSxs = shayaoqiuSxs;
	}

	public String[] getShacustomer() {
		return shacustomer;
	}

	public void setShacustomer(String[] shacustomer) {
		this.shacustomer = shacustomer;
	}

	public Double[] getShaxuyongliaoNums() {
		return shaxuyongliaoNums;
	}

	public void setShaxuyongliaoNums(Double[] shaxuyongliaoNums) {
		this.shaxuyongliaoNums = shaxuyongliaoNums;
	}

	public String[] getShafei_num() {
		return shafei_num;
	}

	public void setShafei_num(String[] shafei_num) {
		this.shafei_num = shafei_num;
	}

	public Double[] getShashijiLinNums() {
		return shashijiLinNums;
	}

	public void setShashijiLinNums(Double[] shashijiLinNums) {
		this.shashijiLinNums = shashijiLinNums;
	}

	public String[] getSharemark() {
		return sharemark;
	}

	public void setSharemark(String[] sharemark) {
		this.sharemark = sharemark;
	}

	public String[] getShatemperature_B() {
		return shatemperature_B;
	}

	public void setShatemperature_B(String[] shatemperature_B) {
		this.shatemperature_B = shatemperature_B;
	}

	public Integer[] getShayeshengchanNums() {
		return shayeshengchanNums;
	}

	public void setShayeshengchanNums(Integer[] shayeshengchanNums) {
		this.shayeshengchanNums = shayeshengchanNums;
	}

	public String[] getShahuan_num() {
		return shahuan_num;
	}

	public void setShahuan_num(String[] shahuan_num) {
		this.shahuan_num = shahuan_num;
	}

	public String[] getShatemperature_C() {
		return shatemperature_C;
	}

	public void setShatemperature_C(String[] shatemperature_C) {
		this.shatemperature_C = shatemperature_C;
	}

	public String[] getMoldingCodes() {
		return moldingCodes;
	}

	public void setMoldingCodes(String[] moldingCodes) {
		this.moldingCodes = moldingCodes;
	}

	public Date[] getTihuoDates() {
		return tihuoDates;
	}

	public void setTihuoDates(Date[] tihuoDates) {
		this.tihuoDates = tihuoDates;
	}

	public String[] getRushOrders() {
		return rushOrders;
	}

	public void setRushOrders(String[] rushOrders) {
		this.rushOrders = rushOrders;
	}

}
